#if !defined(AFX_DLGCOUNTMONTH_H__A771E9CA_E34A_4E40_AACF_DC32F4A22526__INCLUDED_)
#define AFX_DLGCOUNTMONTH_H__A771E9CA_E34A_4E40_AACF_DC32F4A22526__INCLUDED_

#include "SOURCE\BtnST.h"	// Added by ClassView
#include "SOURCE\CJFlatComboBox.h"	// Added by ClassView
#include "SOURCE\NSChartCtrl.h"	// Added by ClassView
#include "SOURCE\ReadOnlyEdit.h"	// Added by ClassView
#include "SearchView.h"


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgCountMonth.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgCountMonth dialog

class CDlgCountMonth : public CDialog
{
// Construction
public:
	void SetViewPtr(CSearchView *pView);
	void SetYear( DWORD	lyear );
	~CDlgCountMonth();
	CDlgCountMonth(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgCountMonth)
	enum { IDD = IDD_DLG_COUNTMONTH };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgCountMonth)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgCountMonth)
	afx_msg void OnChartSelectedItem(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeCmbFlow();
	afx_msg void OnSelchangeCmbPurpose();
	afx_msg void OnBtnToSearchView();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CHAR m_chMonth[50];
	CSearchView* m_pSearchView;
	CButtonST m_btnSaveSearch;
	void CountOutline();
	DWORD m_lYear;
	void CountOneYear();
	_RecordsetPtr m_pRecordset;
	_CommandPtr m_pCommand;
	CReadOnlyEdit m_edDaterange;
	CReadOnlyEdit m_edCountinfo;
	CNSChartCtrl m_chartMonth;
	CCJFlatComboBox m_cmbPurpose;
	CCJFlatComboBox m_cmbFlow;
	CButtonST m_btnOk;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGCOUNTMONTH_H__A771E9CA_E34A_4E40_AACF_DC32F4A22526__INCLUDED_)
